package com.chenfeng.ego.portal.dao.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
import com.chenfeng.ego.portal.dao.JedisDao;

import redis.clients.jedis.JedisCluster;
//缓存的实现类
@Repository
public class JedisDaoImpl implements JedisDao
{
	@Resource
	private JedisCluster jedisClients;
	@Override
	public Boolean exists(String key)
	{
		
		return jedisClients.exists(key);
	}

	@Override
	public String set(String key, String value)
	{
		return jedisClients.set(key, value);
	}
	@Override
	public String get(String key)
	{	
		return jedisClients.get(key);
	}

}
